package cn.com.headfree.call.callback;

import javax.servlet.http.HttpServletRequest;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.stereotype.Component;

import com.gta.edu.sdk.common.dto.ResultData;

import cn.com.headfree.call.IDictionaryServerCall;

@Component
public class DictionaryServerCallback implements IDictionaryServerCall {
	private static final Logger log = LogManager.getLogger(DictionaryServerCallback.class);
	@Override
	public ResultData findDictionaryByParentValue(HttpServletRequest request, String sysCode, String parentValue) {
		String errorMsg = "通过sysCode【"+sysCode+"】调用comm-dictionary-server组件的接口获取父节点下的孩子节点失败！！";
		ResultData result = new ResultData();
		result.setSuccess(false);
		result.setErrorMsg(errorMsg);
		log.error(errorMsg);
		return result;
	}

}
